function changevalue(select_name){
	var myforms = "tongquat";

	if(select_name=='hanhdong'){
		var index = document.forms[myforms].hanhdong.selectedIndex;		
		//alert(index);
		//document.forms[myforms].hanhdong1.options[index-1].selected = true;
		document.forms[myforms].hanhdong1.selectedIndex = index;
	}else{
		var index = document.forms[myforms].hanhdong1.selectedIndex;
		//alert(index);
		//document.forms[myforms].hanhdong.options[index-1].selected = true;
		document.forms[myforms].hanhdong.selectedIndex = index;
	}
	
}
function changevaluesearch(select_name){
/*Vi combox nay bat dau tu gia tri 0 nen giu index */
	var myforms = 'tongquat';
	if(select_name=='find'){
		var index = document.forms[myforms].find.value;
		document.forms[myforms].find1.options[index-1].selected = true;
		
	}else{
		var index = document.forms[myforms].find1.value;
		document.forms[myforms].find.options[index-1].selected = true;
	
	}
	
	
}
function gettextbox(txt_find){
	var myforms = 'tongquat';
	if(txt_find=='name_find'){
		var text = document.forms[myforms].name_find.value;
		document.forms[myforms].name_find1.value = text;
	}else{
		var text = document.forms[myforms].name_find1.value;
		document.forms[myforms].name_find.value = text;
	}
	
	
}
function checkInputText(){
	alert("1234");
}

function getTERMNO_()
{
	var TERMNO_ = document.getElementById('TERMNO_').value;
	for(var i=1;i<=9;i++) {
		var nameTemp = "TERM"+ i;
		var nameTRMCD = "TRMCD"+i;
		var nameRATECD = "RATECD"+i;
		var nameRATE = "RATE"+i;
		if(i <= TERMNO_){
			document.getElementById(nameTemp).readOnly=false;
			document.getElementById(nameTRMCD).disabled=false;
			document.getElementById(nameRATECD).readOnly=false;
			document.getElementById(nameRATE).readOnly=false;
		}
		else{
			document.getElementById(nameTemp).readOnly=true;
			document.getElementById(nameTRMCD).disabled=true;
			document.getElementById(nameRATECD).readOnly=true;
			document.getElementById(nameRATE).readOnly=true;
		}
	}
}

	
	
	